package org.opens.db.datasource;

/**
 * 功能描述
 *
 * @author by zhangyuming
 * @date 2023/3/9
 */
public class GlobalDataSourceFactory {

    private static volatile DataSourceFactory dataSourceFactory;

    private static final Object lock = new Object();

    public static DataSourceFactory getDataSourceFactory() {
        if (dataSourceFactory == null) {
            synchronized (lock) {
                dataSourceFactory = DataSourceFactory.getInstance();
            }
        }
        return dataSourceFactory;
    }

}
